import request from '@/utils/request';
import qs from 'qs';
import type { ResponseData } from '../typing';
export function getMedicalUserPage(params: any) {
    return request.post(`/system/medical/user/page`, params);
}
export function medicalUserCreat(params: any) {
    return request.post(`/system/medical/user/create`, params);
}
export function medicalUserUpdate(params: any) {
    return request.put(`/system/medical/user/update`, params);
}
export function getMedicalUser(id: string) {
    return request.get(`/system/medical/user/get/${id}`);
}

export function deleteMedicalUser(id: string) {
    return request.delete(`/system/medical/user/delete/${id}`);
}

export function exportMedicalUserExcel(params: any): Promise<Blob> {
    return request.post(`/system/medical/user/export-excel`, params, {
        responseType: 'blob',
    });
}
